﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LogManager.Storage.Indexes;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Client.Indexes;

namespace LogManager.Storage
{
    class LocalStorage : EmbeddableDocumentStore  
    {
        public LocalStorage()
        {
            DataDirectory = "AppData/LocalStorage/";
        }

        public new void Initialize()
        {
            base.Initialize();
            IndexCreation.CreateIndexes(typeof(AllLogs).Assembly, this);
            IndexCreation.CreateIndexes(typeof(AllEvents).Assembly, this);
        }
    }
}
